# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinxcontrib-cacoo
_pkgname=sphinxcontrib-cacoo
pkgver=2.0.0
pkgrel=7
pkgdesc="Sphinx cacoo extension"
url="https://github.com/tk0miya/sphinxcontrib-cacoo"
arch="noarch"
license="BSD-2-Clause"
depends="py3-sphinx"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-sphinxcontrib-cacoo"                  # Backwards compatibility
provides="py-sphinxcontrib-cacoo=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="180d34e3d77870c3d6385b62c59094c15ba7af64b1821f0bbdcbbc04ca901396fe3e78e72f0a504286afd9583e86af590fcfc6867ab2c959c6a5164b009fe032  sphinxcontrib-cacoo-2.0.0.tar.gz"
